.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;

  &.is-root {
    position: relative;
  }

  &-item {
    line-height: 30px;
  }

  &-item-wrap {
    cursor: pointer;
  }

  &-item--row {
    position: absolute;
    width: 100%;
    left: 0;
    cursor: pointer;
    height: 30px;
    box-sizing: border-box;
  
    &.is-hovered {
      background-color: #E3E8ED;
    }

    &.is-checked {
      background-color: #e0e8ef;
      border-left: solid 2px #3693FF;
    }

    &.is-dragging {
      border: dashed 1px #DBDBE5;
    }

    &.is-sort-start {
      border-top: solid 1px #3693FF;
    }

    &.is-sort-in {
      border: solid 1px #3693FF;
    }

    &.is-sort-end {
      border-bottom: solid 1px #3693FF;
    }
  }

  &-item--content {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 0 5px;
    flex-direction: row;
  }

  &-item--label {
    flex: auto;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    &::after {
      content: "";
      clear: both;
      display: table;
    }
  }

  &-item--icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
    margin-right: 4px;
    // background-color: #ccc;
  }

  &-item--text {
    // background-color: #ddd;
    vertical-align: middle;
  }

  &-item--icon.collapse-icon {
    transform: rotate(-90deg);
  }

  &-item--icon.folder-icon {
    color: #79B8FF;
  }

  &-item > .menu {
    display: none;
  }

  &-item.is-group > .menu {
    display: block;
  }

  .menu-group-title {
    font-size: 12px;
    padding: 0 10px;
    opacity: 0.8;
    height: 20px;
    line-height: 20px;
  }

  &-item.is-open {
    &>.menu-item-wrap .collapse-icon {
      transform: rotate(0);
    }

    & > .menu {
      display: block;
    }
  }

  &-item--ctrl {
    padding-left: 5px;
  }

  & &-item & &-item {
    margin-left: 16px;
  }

  &-item.is-group > .menu > .menu-item {
    margin-left: 0;
  }
}
